#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  longest.py
#       Author @  Huoty
#  Create date @  2015-10-21 13:55:12
#  Description @  
# *************************************************************

def longest(filename):
    #glines = (x.strip() for x in open(filename))
    #return max([len(l) for l in glines])
    return max([len(x.strip()) for x in open(filename)])

# Script starts from here

if __name__ == "__main__":
    print longest("/etc/hosts")

